/* 基础容器样式 */
.container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #1e3a8a 100%);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  font-style: normal;
}

.container.loaded {
  opacity: 1;
}

/* 动态背景粒子 */
.particleField {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: particleFloat 6s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

@keyframes particleFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
    opacity: 0.3; 
  }
  50% { 
    transform: translateY(-30px) rotate(180deg); 
    opacity: 0.8; 
  }
}

/* 鼠标跟随光效 */
.mouseGlow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: 2;
}

/* 主内容区域 */
.mainContent {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* 个人简介区域 */
.heroSection {
  padding: 4rem 0;
  text-align: center;
}

.heroContent {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profileCard {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  padding: 3rem;
  max-width: 800px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profileCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent);
  transition: left 0.8s ease;
}

.profileCard:hover::before {
  left: 100%;
}

  .coolName {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem 0;
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    padding: 1rem 2rem;
    transition: all 0.4s ease;
    overflow: hidden;
  }

  .coolName::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
      transparent, 
      rgba(102, 126, 234, 0.15), 
      rgba(118, 75, 162, 0.15), 
      transparent);
    transition: left 1s ease;
  }



.nameText {
  position: relative;
  z-index: 2;
  font-size: 2.8rem;
  font-weight: 400;
  color: #ffffff;
  font-style: normal;
  transition: all 0.3s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.coolName:hover::before {
  left: 100%;
}

.coolName:hover .nameText {
  color: rgba(255, 255, 255, 1);
  text-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 255, 255, 0.1);
}

.profileInfo {
  text-align: center;
  color: white;
}

.profileName {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
}

.profileTitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
  font-family: inherit;
  font-style: inherit;
}

.profileBio {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-family: inherit;
  font-style: inherit;
}

/* 社交链接 */
.socialLinks {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.socialLink {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.socialLink::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.socialLink:hover {
  transform: translateY(-4px) scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(102, 126, 234, 0.4);
}

.socialLink:hover::before {
  left: 100%;
}

/* 技能展示区域 */
.skillsSection {
  padding: 4rem 0;
}

.sectionHeader {
  text-align: center;
  margin-bottom: 3rem;
}

.sectionTitle {
  font-size: 2.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
  font-family: inherit;
  font-style: inherit;
}

.sectionSubtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  font-family: inherit;
  font-style: inherit;
}

.skillsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.skillCard {
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.skillCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(102, 126, 234, 0.15), 
    rgba(118, 75, 162, 0.15), 
    transparent);
  transition: left 0.6s ease;
}

.skillCard:hover,
.skillCard.active {
  transform: translateY(-8px);
  background: rgba(10, 10, 10, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.skillCard:hover::before,
.skillCard.active::before {
  left: 100%;
}

.cardHeader {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cardIcon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(79, 70, 229, 0.3));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.cardIcon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.cardTitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: white;
  margin: 0;
  font-family: inherit;
  font-style: inherit;
}

.skillsList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skillItem {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.skillItem:last-child {
  margin-bottom: 0;
}

.skillDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(45deg, #3b82f6, #4f46e5);
  margin-right: 0.75rem;
  animation: skillPulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
  flex-shrink: 0;
}

@keyframes skillPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.skillText {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  font-family: inherit;
  font-style: inherit;
}

.cardGlow {
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.3), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skillCard:hover .cardGlow,
.skillCard.active .cardGlow {
  opacity: 1;
}

/* 项目展示区域 */
.projectsSection {
  padding: 4rem 0;
}

.projectsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.projectCard {
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2rem;
  text-decoration: none;
  color: white;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.projectCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(102, 126, 234, 0.15), 
    rgba(118, 75, 162, 0.15), 
    transparent);
  transition: left 0.6s ease;
}

.projectCard:hover {
  transform: translateY(-6px);
  background: rgba(10, 10, 10, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.projectCard:hover::before {
  left: 100%;
}

.projectIcon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(79, 70, 229, 0.3));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
  flex-shrink: 0;
}

.projectIcon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.projectInfo {
  flex: 1;
}

.projectName {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  color: white;
  font-family: inherit;
  font-style: inherit;
}

.projectDescription {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.4;
  font-family: inherit;
  font-style: inherit;
}

.projectArrow {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.projectCard:hover .projectArrow {
  color: white;
  transform: translateX(4px);
}

.projectGlow {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.3), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.projectCard:hover .projectGlow {
  opacity: 1;
}

/* 响应式设计 */

@media (max-width: 1200px) {
  .heroSection {
    padding: 3rem 0;
  }
  
  .skillsSection,
  .projectsSection {
    padding: 3.5rem 0;
  }
  
  .nameText {
    font-size: 2.4rem;
  }
  
  .profileTitle {
    font-size: 1.15rem;
  }
  
  .sectionTitle {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .mainContent {
    padding: 2rem 1.5rem;
  }
  
  .heroSection {
    padding: 2rem 0;
  }
  
  .skillsSection,
  .projectsSection {
    padding: 2.5rem 0;
  }
  
  .nameText {
    font-size: 2rem;
  }
  
  .profileTitle {
    font-size: 1rem;
  }
  
  .profileBio {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .sectionTitle {
    font-size: 1.8rem;
  }
  
  .sectionSubtitle {
    font-size: 1rem;
  }
  
  .skillsGrid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skillCard {
    padding: 2rem 1.5rem;
  }
  
  .projectsGrid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .projectCard {
    padding: 2rem 1.5rem;
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    align-items: center;
  }
  
  .projectInfo {
    text-align: left;
    flex: 1;
    min-width: 0;
  }
  
  .socialLinks {
    gap: 0.75rem;
  }
  
  .socialLink {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .mainContent {
    padding: 1.5rem 1rem;
  }
  
  .heroSection {
    padding: 1.5rem 0;
  }
  
  .skillsSection,
  .projectsSection {
    padding: 2rem 0;
  }
  
  .nameText {
    font-size: 1.8rem;
  }
  
  .profileTitle {
    font-size: 0.9rem;
  }
  
  .profileBio {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .sectionTitle {
    font-size: 1.5rem;
  }
  
  .sectionSubtitle {
    font-size: 0.9rem;
  }
  
  .skillCard {
    padding: 1.5rem 1.25rem;
  }
  
  .cardIcon {
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
  }
  
  .cardIcon svg {
    width: 20px;
    height: 20px;
  }
  
  .cardTitle {
    font-size: 1.1rem;
  }
  
  .skillText {
    font-size: 0.9rem;
  }
  
  .projectCard {
    padding: 1.5rem 1.25rem;
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 0.75rem;
  }
  
  .projectInfo {
    text-align: left;
    flex: 1;
    min-width: 0;
  }
  
  .projectIcon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  
  .projectIcon svg {
    width: 20px;
    height: 20px;
  }
  
  .projectArrow {
    flex-shrink: 0;
  }
  
  .projectName {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .projectDescription {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .socialLinks {
    gap: 0.5rem;
  }
  
  .socialLink {
    width: 40px;
    height: 40px;
  }
  
  .socialLink svg {
    width: 16px;
    height: 16px;
  }
}